/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package communicator.message;

import base.TrackNode;
import base.TrackNode.Rule;
import base.WaveEnvironment;

/**
 * Thong diep yeu cau tao track
 * @author Tue
 */
public class MsgCreateTrack extends Message{
    private TrackNode.Type type;//TrackType cua track se duoc tao ra
    private String parentAddress;//Dia chi cua track parent neu co
    private String trackAddress; //Dia chi cua track se duoc tao ra
    private TrackNode.Rule rule;//Rule duoc gan vao track khi tao ra
    private String enclosedWave;//Chuoi wave trong rule neu co
    private String suspendedWave;//Wave tail neu co
    private WaveEnvironment waveEnv;//WaveEnvironment di cung track

    public MsgCreateTrack(TrackNode.Type type, String parentAddress, 
            String trackAddress, Rule rule, String enclosedWave,
            String suspendedWave, WaveEnvironment waveEnv) {
        this.type = type;
        this.parentAddress = parentAddress;
        this.trackAddress = trackAddress;
        this.rule = rule;
        this.enclosedWave = enclosedWave;
        this.suspendedWave = suspendedWave;
        this.waveEnv = waveEnv;
    }
    public TrackNode.Type getType(){
        return type;
    }
    public String getEnclosedWave() {
        return enclosedWave;
    }

    public String getParentAddress() {
        return parentAddress;
    }

    public Rule getRule() {
        return rule;
    }

    public String getSuspendedWave() {
        return suspendedWave;
    }

    public String getTrackAddress() {
        return trackAddress;
    }

    public WaveEnvironment getWaveEnv() {
        return waveEnv;
    }

}
